#include <gtk/gtk.h>
#include <libnemo-private/nemo-directory.h>
#include <libnemo-private/nemo-directory-private.h>
#include <libnemo-private/nemo-file-utilities.h>

int 
main (int argc, char* argv[])
{
    gtk_init (&argc, &argv);
    NemoFile *file;
    NemoDirectory *dir, *dir1, *dir2, *dir3;
    GList *list;
    GList *l;
    list = NULL;
    file = nemo_file_get_by_uri (g_get_home_dir ());
    dir1 = nemo_directory_get_for_file (file);
    dir2 = nemo_directory_get_by_uri ("file:///usr/share/icons");
    dir3 = nemo_directory_get (nemo_get_desktop_location ());

    list = g_list_append (list, dir1);
    list = g_list_append (list, dir2);
    list = g_list_append (list, dir3);


    for (l = list; l ; l = l->next) {
        dir =  NEMO_DIRECTORY (l->data);
        g_print ("directory name:%s\n", nemo_directory_get_name_for_self_as_new_file (dir));
        g_print ("directory uri:%s\n", nemo_directory_get_uri (dir));
        g_print ("location uri:%s\n\n", g_file_get_uri (nemo_directory_get_location (dir)));
    }

    g_list_free (list);
    g_list_free (l);
    nemo_file_unref (file);
    nemo_directory_unref (dir1);
    nemo_directory_unref (dir2);
    nemo_directory_unref (dir3);

    return 0;
}